package main

import (
	"OPS_TEMPLATE/models"
	_ "OPS_TEMPLATE/routers"
	"OPS_TEMPLATE/util"
	"OPS_TEMPLATE/util/html"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
)

func init() {
	util_html.InitHtmlFuc()
	models.ModelsRegisterModel()
	orm.RunSyncdb("default", false, true)
	beego.InsertFilter("/*", beego.BeforeExec, util.FilterUser)
}

func main() {
	beego.Run()
}
